package com.sgb.member.di.repository;

import com.sgb.member.MemberConfig;
import com.sgb.member.service.MemberAPI;
import com.swgk.core.base.api.BaseApiSource;
import com.swgk.core.base.model.preference.BasePreferenceSource;
import com.swgk.core.util.SharedPreferenceUtil;

public class MemberRepertoryImpl implements MemberRepertory {

    public MemberRepertoryImpl(BaseApiSource apiSource, BasePreferenceSource preferenceSource) {

    }

    @Override
    public String getAreaCode() {
        return SharedPreferenceUtil.getInstance().getSaveStringData(SharedPreferenceUtil.AREA_CODE, "");
    }

    @Override
    public String getToken() {
        return SharedPreferenceUtil.getInstance().getString(SharedPreferenceUtil.LOGIN_TOKEN, "");
    }

    @Override
    public MemberAPI getApi() {
        return MemberConfig.getInstance().getApi();
    }


}
